package com.xxxt.entity;

import java.util.List;

//老师实体类
public class Teacher {
private String tno;//老师身份证/老师工号

private String name;//老师姓名

private String sex;//教师性别

private String password;//老师密码

private String idcard;//老师身份证

private String email;//老师邮箱

private String phone;//老师手机号

private String registerStatus;//老师注册状态(通过、拒绝、等待中)

private List<Student> studets;//与老师关联的所有学生实体

private List<ClassGrade> classGrades;//与老师关联的所有班级实体

private List<Inform> informs;//与老师关联的所有通知实体


public Teacher(String tno, String name, String sex, String password, String email, String phone, String registerStatus,
		List<Student> studets, List<ClassGrade> classGrades, List<Inform> informs) {
	super();
	this.tno = tno;
	this.name = name;
	this.sex = sex;
	this.password = password;
	this.email = email;
	this.phone = phone;
	this.registerStatus = registerStatus;
	this.studets = studets;
	this.classGrades = classGrades;
	this.informs = informs;
}
public Teacher(String tno, String name, String password, String email, String registerStatus) {
	super();
	this.tno = tno;
	this.name = name;
	this.password = password;
	this.email = email;
	this.registerStatus = registerStatus;
}


public Teacher(String tno) {
	this.tno = tno;
}
public Teacher() {}

public Teacher(String name, String password, String email, String phone, String registerStatus,
		List<Student> studets, List<ClassGrade> classGrades, List<Inform> informs) {
	super();
	this.name = name;
	this.password = password;
	this.email = email;
	this.phone = phone;
	this.registerStatus = registerStatus;
	this.studets = studets;
	this.classGrades = classGrades;
	this.informs = informs;
}
public String getTno() {
	return tno;
}
public void setTno(String tno) {
	this.tno = tno;
}
public String getName() {
	return name;
}
public void setName(String name) {
	this.name = name;
}
public String getPassword() {
	return password;
}
public void setPassword(String password) {
	this.password = password;
}
public String getEmail() {
	return email;
}
public void setEmail(String email) {
	this.email = email;
}
public String getPhone() {
	return phone;
}
public void setPhone(String phone) {
	this.phone = phone;
}
public String getRegisterStatus() {
	return registerStatus;
}
public void setRegisterStatus(String registerStatus) {
	this.registerStatus = registerStatus;
}
public List<Student> getStudets() {
	return studets;
}
public void setStudets(List<Student> studets) {
	this.studets = studets;
}
public List<ClassGrade> getClassGrades() {
	return classGrades;
}
public void setClassGrades(List<ClassGrade> classGrades) {
	this.classGrades = classGrades;
}
public List<Inform> getInforms() {
	return informs;
}
public void setInforms(List<Inform> informs) {
	this.informs = informs;
}

public String getSex() {
	return sex;
}
public void setSex(String sex) {
	this.sex = sex;
}
public String getIdcard() {
	return idcard;
}
public void setIdcard(String idcard) {
	this.idcard = idcard;
}
@Override
public String toString() {
	return "Teacher [tno=" + tno + ", name=" + name + ", sex=" + sex + ", password=" + password + ", idcard=" + idcard
			+ ", email=" + email + ", phone=" + phone + ", registerStatus=" + registerStatus + ", studets=" + studets
			+ ", classGrades=" + classGrades + ", informs=" + informs + "]";
}



}
